package jiekou;

public class Test {
    public static void main(String[] args) {
            //  父类new 子类

        Person stu = new Student();
        // 弹吉他  开车  炒菜
        Driver stu2= new Student();
//        stu2.setName("");
        stu2.run();
        Fried stu3= new Student();
        stu3.chaocai();


        Student stu4 = new Student();
        stu4.setName("张森发");
        stu4.run();
        stu4.chaocai();
        stu4.tanJita();


        // 声明父类：


    }
}
